package com.eshop.modules.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eshop.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "用户地址表", value = "UserAddress对象")
public class UserAddress extends BaseDomain {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("收货人所在市")
    private String city;
    private Integer cityId;
    @ApiModelProperty("收货人详细地址")
    private String detail;
    @ApiModelProperty("收货人所在区")
    private String district;
    @TableId(type = IdType.AUTO, value = "id")
    @ApiModelProperty("用户地址id")
    private Long id;
    @ApiModelProperty("是否默认")
    private Integer isDefault;
    @ApiModelProperty("纬度")
    private String latitude;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("收货人电话")
    private String phone;
    @ApiModelProperty("邮编")
    private String postCode;
    @ApiModelProperty("收货人所在省")
    private String province;
    @ApiModelProperty("收货人姓名")
    private String realName;
    @ApiModelProperty("用户id")
    private Long uid;

    public void setCity(String city2) {
        this.city = city2;
    }

    public void setCityId(Integer cityId2) {
        this.cityId = cityId2;
    }

    public void setDetail(String detail2) {
        this.detail = detail2;
    }

    public void setDistrict(String district2) {
        this.district = district2;
    }

    public void setId(Long id2) {
        this.id = id2;
    }

    public void setIsDefault(Integer isDefault2) {
        this.isDefault = isDefault2;
    }

    public void setLatitude(String latitude2) {
        this.latitude = latitude2;
    }

    public void setLongitude(String longitude2) {
        this.longitude = longitude2;
    }

    public void setPhone(String phone2) {
        this.phone = phone2;
    }

    public void setPostCode(String postCode2) {
        this.postCode = postCode2;
    }

    public void setProvince(String province2) {
        this.province = province2;
    }

    public void setRealName(String realName2) {
        this.realName = realName2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public UserAddress(Long id2, Long uid2, String realName2, String phone2, String province2, String city2, Integer cityId2, String district2, String detail2, String postCode2, String longitude2, String latitude2, Integer isDefault2) {
        this.id = id2;
        this.uid = uid2;
        this.realName = realName2;
        this.phone = phone2;
        this.province = province2;
        this.city = city2;
        this.cityId = cityId2;
        this.district = district2;
        this.detail = detail2;
        this.postCode = postCode2;
        this.longitude = longitude2;
        this.latitude = latitude2;
        this.isDefault = isDefault2;
    }

    public static class UserAddressBuilder {
        private String city;
        private Integer cityId;
        private String detail;
        private String district;
        private Long id;
        private Integer isDefault;
        private String latitude;
        private String longitude;
        private String phone;
        private String postCode;
        private String province;
        private String realName;
        private Long uid;

        UserAddressBuilder() {
        }

        public UserAddress build() {
            return new UserAddress(this.id, this.uid, this.realName, this.phone, this.province, this.city, this.cityId, this.district, this.detail, this.postCode, this.longitude, this.latitude, this.isDefault);
        }

        public UserAddressBuilder city(String city2) {
            this.city = city2;
            return this;
        }

        public UserAddressBuilder cityId(Integer cityId2) {
            this.cityId = cityId2;
            return this;
        }

        public UserAddressBuilder detail(String detail2) {
            this.detail = detail2;
            return this;
        }

        public UserAddressBuilder district(String district2) {
            this.district = district2;
            return this;
        }

        public UserAddressBuilder id(Long id2) {
            this.id = id2;
            return this;
        }

        public UserAddressBuilder isDefault(Integer isDefault2) {
            this.isDefault = isDefault2;
            return this;
        }

        public UserAddressBuilder latitude(String latitude2) {
            this.latitude = latitude2;
            return this;
        }

        public UserAddressBuilder longitude(String longitude2) {
            this.longitude = longitude2;
            return this;
        }

        public UserAddressBuilder phone(String phone2) {
            this.phone = phone2;
            return this;
        }

        public UserAddressBuilder postCode(String postCode2) {
            this.postCode = postCode2;
            return this;
        }

        public UserAddressBuilder province(String province2) {
            this.province = province2;
            return this;
        }

        public UserAddressBuilder realName(String realName2) {
            this.realName = realName2;
            return this;
        }

        public String toString() {
            return "UserAddress.UserAddressBuilder(id=" + this.id + ", uid=" + this.uid + ", realName=" + this.realName + ", phone=" + this.phone + ", province=" + this.province + ", city=" + this.city + ", cityId=" + this.cityId + ", district=" + this.district + ", detail=" + this.detail + ", postCode=" + this.postCode + ", longitude=" + this.longitude + ", latitude=" + this.latitude + ", isDefault=" + this.isDefault + ")";
        }

        public UserAddressBuilder uid(Long uid2) {
            this.uid = uid2;
            return this;
        }
    }

    public UserAddress() {
    }

    public static UserAddressBuilder builder() {
        return new UserAddressBuilder();
    }

    public Long getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public String getRealName() {
        return this.realName;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getProvince() {
        return this.province;
    }

    public String getCity() {
        return this.city;
    }

    public Integer getCityId() {
        return this.cityId;
    }

    public String getDistrict() {
        return this.district;
    }

    public String getDetail() {
        return this.detail;
    }

    public String getPostCode() {
        return this.postCode;
    }

    public String getLongitude() {
        return this.longitude;
    }

    public String getLatitude() {
        return this.latitude;
    }

    public Integer getIsDefault() {
        return this.isDefault;
    }
}
